import request from "./request";

/**
 * 获取vip套餐信息
 * @returns { data }
 */
export function getVipMenus(): any {
  return request.get('/VipPay/getVipType')
}

/**
 * 购买Vip
 * @param value: 套餐类型：oneMonth(一个月) season(一季度) year(一年)
 */
export function buyVipMeal(value: string) {
  return request.post('/VipPay/openVip', {
    type: value
  })
}
